package org.secangkirkopipanas.gxtcore.server.dao;

import java.util.List;

import org.hibernate.SessionFactory;
import org.secangkirkopipanas.gxtcore.server.domain.SystemBusinessUnit;

public interface ISystemBusinessUnitDAO {
	
	public SessionFactory getSessionFactory();

	public void setSessionFactory(SessionFactory sessionFactory);

	public void add(SystemBusinessUnit systemBusinessUnit);
	
	public void delete(SystemBusinessUnit systemBusinessUnit);
	
	public void add(String systemBusinessUnitName);

	public List<SystemBusinessUnit> getForList();

	public SystemBusinessUnit get(long unitId);

	public SystemBusinessUnit get(String unitName);

	public List<SystemBusinessUnit> getBusinessUnitMembers(
			SystemBusinessUnit systemBusinessUnit);

	public int getTotalCount();

}